import request from '@/utils/request'

/**
 * 三级装箱明细分页查询
 * @param {查询条件} data
 */
export function pageProdThreePackDetail(query) {
  return request({
    url: 'ProdManage/ProdThreePackDetail/pageList',
    method: 'get',
    params: query,
  })
}

/**
 * 新增三级装箱明细
 * @param data
 */
export function addProdThreePackDetail(data) {
  return request({
    url: 'ProdManage/ProdThreePackDetail',
    method: 'post',
    data: data,
  })
}
/**
 * 修改三级装箱明细
 * @param data
 */
export function updateProdThreePackDetail(data) {
  return request({
    url: 'ProdManage/ProdThreePackDetail',
    method: 'PUT',
    data: data,
  })
}
/**
 * 获取三级装箱明细详情
 * @param {Id}
 */
export function getProdThreePackDetail(id) {
  return request({
    url: 'ProdManage/ProdThreePackDetail/' + id,
    method: 'get'
  })
}

/**
 * 删除三级装箱明细
 * @param {主键} pid
 */
export function delProdThreePackDetail(pid) {
  return request({
    url: 'ProdManage/ProdThreePackDetail/delete',
    method: 'POST',
    data: pid
  })
}
